package user;

import java.util.Date;

public class Manager extends User {

    public Manager() {
        super();
        setUserType("经理"); // 固定用户类型
    }

    public Manager(int id, String userName, String password, String userTelephone,
                   Date registerTime, boolean needChangePassword) {
        super(id, userName, password, "经理", userTelephone, registerTime, needChangePassword);
    }

    // 重写输入方法，固定用户类型
    @Override
    public void inputUserInfo() {
        System.out.println("请输入经理ID:");
        setId(scanner.nextInt());
        scanner.nextLine();

        System.out.println("请输入经理用户名:");
        setUserName(scanner.nextLine());

        System.out.println("请输入密码:");
        setPassword(scanner.nextLine());

        System.out.println("请输入经理电话:");
        setUserTelephone(scanner.nextLine());

        setRegisterTime(new Date());
    }
}